Witnesses for Boolean Matrix Multiplication and for Shortest Paths
نویسندگان
چکیده
The subcubic (O(n) for ω < 3) algorithms to multiply Boolean matrices do not provide the witnesses; namely, they compute C = AB but if Cij = 1 they do not find an index k (a witness) such that Aik = Bkj = 1. We design a deterministic algorithm for computing the matrix of witnesses that runs in Õ(n) time, where here Õ(n) denotes O(n(log n)). The subcubic methods to compute the shortest distances between all pairs of vertices also do not provide for witnesses; namely they compute the shortest distances but do not generate information for computing quickly the paths themselves. A witness for a shortest path from vi to vj is an index k such that vk is the first vertex on such a path. We describe subcubic methods to compute such witnesses for several versions of the all pairs shortest paths problem. As a result, we derive shortest paths algorithms that provide characterization of the shortest paths in addition to the shortest distances in essentially the same time needed for computing the distances; namely Õ(n) in the directed case and Õ(n) time in the undirected case. We also design an algorithm that computes witnesses for the transitive closure in the same time needed to compute witnesses for Boolean matrix multiplication.
منابع مشابه
A New Combinatorial Approach for Sparse Graph Problems
We give a new combinatorial data structure for representing arbitrary Boolean matrices. After a short preprocessing phase, the data structure can perform fast vector multiplications with a given matrix, where the runtime depends on the sparsity of the input vector. The data structure can also return minimum witnesses for the matrix-vector product. Our approach is simple and implementable: the d...
متن کاملTriangle Detection Versus Matrix Multiplication: A Study of Truly Subcubic Reducibility∗
It is well established that the problem of detecting a triangle in a graph can be reduced to Boolean matrix multiplication (BMM). Many have asked if there is a reduction in the other direction: can a fast triangle detection algorithm be used to solve BMM faster? The general intuition has been that such a reduction is impossible: for example, triangle detection returns one bit, while a BMM algor...
متن کاملImproved output-sensitive quantum algorithms for Boolean matrix multiplication
We present new quantum algorithms for Boolean Matrix Multiplication in both the time complexity and the query complexity settings. As far as time complexity is concerned, our results show that the product of two n× n Boolean matrices can be computed on a quantum computer in time Õ(n3/2+nl3/4), where l is the number of non-zero entries in the product, improving over the outputsensitive quantum a...
متن کاملMulti - Terminal Shortest Paths
The present paper gives an algorithm that finds simultaneously the shortest paths between many pairs of nodes in a given network. In the book by Berge, the values of shortest paths between many pairs of nodes are found. Here, we use a special matrix multiplication technique to find the actual arcs that are used to form the shortest paths. In a network with n nodes, log [n-l] special matrix mult...
متن کاملFaster Funny Matrix Multiplication for the All-Pairs Shortest Paths Problem
Funny Matrix Multiplication (FMM) is a matrix multiplication operation in which the scalar addition and multiplication operations are replaced by the scalar minimization and addition operations, respectively. It is a fundamental computational task for matrices and its applications include the allpairs shortest paths problem. Recently McAuley and Caetano have proposed a new algorithm whose expec...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1992